package com.tianluo.tianluobookstore.controller.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class BookstoreController {

    @GetMapping("/index")
    public String index() {
        return "index"; // 返回首页 (index.html)
    }

    @GetMapping("/loginPage")
    public String login() {
        return "loginPage"; // 返回首页 (index.html)
    }

    @GetMapping("/home")
    public String home() {
        return "home"; // 对应templates/home.html
    }

    @GetMapping("/addBook")
    public String addBook() {
        return "addBook"; // 对应templates/home.html
    }

}
